import http from '../service/http'
// get请求
export function getHomeAPI(params) {
  return http.get('common/video/getPopularVideo', params)
}
export function getHomeCarouselAPI(userId, videoId) {
  return http.get(`user/${userId}/triggerLike/${videoId}`)
}
export function getHomeCommentAPI(videoId) {
  return http.get(`video/${videoId}/getVideoComment/page/1`)
}
// 判断是否登录
export function getAPI() {
  return http.get('user/persistent/getUserInfo/undefined')
}
// post请求
export function postRemarkAPI(params) {
  return http.post('user/commentVideo', params)
}
